<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<img id="img" src="../img/xz.jpg" height="697px" />
	</body>
	<script type="text/javascript">
		document.onreadystatechange = loadingChange; //当页面加载状态改变的时候执行这个方法. 
		window.parent.document.onreadystatechange = loadingChange; //当父页面加载状态改变的时候执行这个方法.
		function loadingChange() {
			if(document.readyState == 'complete' || window.parent.document.readyState == 'complete') { //当页面加载状态
				var width = window.innerWidth;
				var height = window.innerHeight;
				var img = document.getElementById("img");
				img.width = width - 25;
				img.height = height - 25;
			}
		}
	</script>

</html>